﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace word.others
{
    public partial class BgForm: Form
    {
        public BgForm()
        {
            InitializeComponent();
        }


        private void radioButton1_CheckedChanged(object sender, EventArgs e)
        {
            font(Color.Red);
        }

        private void radioButton2_CheckedChanged(object sender, EventArgs e)
        {
            font(Color.Green);
        }

        private void radioButton3_CheckedChanged(object sender, EventArgs e)
        {
            font(Color.Blue);
        }




        private void radioButton4_CheckedChanged(object sender, EventArgs e)
        {
            background(Color.Red);
        }

        private void radioButton5_CheckedChanged(object sender, EventArgs e)
        {
            background(Color.Green);
        }

        private void radioButton6_CheckedChanged(object sender, EventArgs e)
        {
            background(Color.Blue);
        }

        public void background(Color color)
        {
            lbl_test.BackColor = color;
        }

        public void font(Color color)
        {
            lbl_test.ForeColor = color;
        }
    }
}
